Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(project): use a native fallback for image service #328

Merged
merged 5 commits into from
Jul 20, 2023

Conversation

AntonLantukh
Copy link
Collaborator

@AntonLantukh AntonLantukh commented Jul 5, 2023

Description

  • Use a native fallback for additional images (via poster_fallback=1 query)
  • Store images as a simple string for media items (instead of ImageData object)
  • Add backward compatibility for ImageData structure for channels / programs not to force customers to update all their schedules

This PR solves # .

Steps completed:

According to our definition of done, I have completed the following steps:

  • Acceptance criteria met
  • Unit tests added
  • Docs updated (including config and env variables)
  • Translations added
  • UX tested
  • Browsers / platforms tested
  • Rebased & ready to merge without conflicts
  • Reviewed own code

@github-actions
Copy link

github-actions bot commented Jul 5, 2023

Visit the preview URL for this PR (updated for commit 302b23b):

https://ottwebapp--pr328-feat-simplify-altern-g1ccvisf.web.app

(expires Thu, 17 Aug 2023 15:54:34 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: c198f8a3a199ba8747819f7f1e45cf602b777529

@AntonLantukh AntonLantukh force-pushed the feat/simplify-alternate-images branch 3 times, most recently from b4039d9 to 951a950 Compare July 5, 2023 16:55
@AntonLantukh AntonLantukh force-pushed the feat/simplify-alternate-images branch from 951a950 to 0fc9bd6 Compare July 6, 2023 10:04
@AntonLantukh AntonLantukh marked this pull request as ready for review July 6, 2023 11:59
Copy link
Collaborator

@ChristiaanScheermeijer ChristiaanScheermeijer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice cleanup. I've left two small comments/questions

@AntonLantukh AntonLantukh force-pushed the feat/simplify-alternate-images branch from 44ebd6e to 6f993c6 Compare July 11, 2023 19:42
@@ -55,7 +55,7 @@ function CardGrid({
onCardHover,
}: CardGridProps) {
const breakpoint: Breakpoint = useBreakpoint();
const posterAspect = parseAspectRatio(playlist.shelfImageAspectRatio);
const posterAspect = parseAspectRatio(playlist.aspectRatio || playlist.shelfImageAspectRatio);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ChristiaanScheermeijer Do you know any cases where shelfImageAspectRatio is used by customers? I would just leave aspectRatio.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't mind keeping the more verbose param. What was the reason for the name change in the first place? Just aspectRatio might imply the sizing of the shelf itself.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use now cardImage instead of shelfImage as we changed the label to card by default (AC). Previously shelfImage custom param was used to define the label. I can also use cardImageAspectRatio.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so. We're using this in the demo app configs, though. But if you are going to change it and remove the fallback, it would be good to mention it in the changelogs.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left the fallback withshelfImageAspectRatio (deprecated), added cardImageAspectRatio

@AntonLantukh AntonLantukh merged commit 6c680a9 into develop Jul 20, 2023
@AntonLantukh AntonLantukh deleted the feat/simplify-alternate-images branch July 20, 2023 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants